﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Epilog.Core.Model
{
    public class BlogPost
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int BlogPostId { get; set; }
        public string BlogPostUrl { get; set; }
        public string BlogPostTitle { get; set; }

        public DateTime BlogPostCreated { get; set; }
        public DateTime? BlogPostPublished { get; set; }
        public DateTime BlogPostEdited { get; set; }

        public string BlogPostDraftBody { get; set; }
        public string BlogPostPublishedBody { get; set; }
        
        public BlogPostStatusType BlogPostStatus { get; set; }

        public ICollection<BlogTag> Tags { get; set; }

    }

    public enum BlogPostStatusType
    {
        Draft = 0,
        Public = 1
    }
}
